A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
-bash/zsh: inkscape command not found # Windows (WSL2) sudo apt-get update sudo apt-get install inkscape # Debian apt-get install inkscape # Ubuntu apt-get install inkscape # Alpine apk add inkscape # Arch Linux pacman -S inkscape # Kali Linux apt-get install inkscape # CentOS yum install inkscape # Fedora dnf install inkscape # Raspbian apt-get install inkscape # Dockerfile dockerfile.run/inkscape # Docker docker run cmd.cat/inkscape inkscape
Inkscape 是一款开源矢量图形编辑器,类似于 Adobe Illustrator、Corel Draw、Freehand 或 Xara X。
Inkscape 的与众不同之处在于它使用可扩展矢量图形 SVG(一种基于 XML 的开放 W3C 标准)作为本机格式。
inkscape [options] [filename_1 filename_2 ...]

-?, --help
--help-all
--help-gapplication
--help-gtk
-V, --version
--debug-info
--system-data-directory
--user-data-directory
-p, --pipe
-n, --pages=PAGE[,PAGE]
--pdf-poppler
--convert-dpi-method=METHOD
--no-convert-text-baseline-spacing
-o, --export-filename=FILENAME
--export-overwrite
--export-type=TYPE[,TYPE]*
--export-extension=EXTENSION-ID
-C, --export-area-page
-D, --export-area-drawing
-a, --export-area=x0:y0:x1:y1
--export-area-snap
-d, --export-dpi=DPI
-w, --export-width=WIDTH
-h, --export-height=HEIGHT
--export-margin=MARGIN
--export-page=all|n[,a-b]
-i, --export-id=OBJECT-ID[;OBJECT-ID]*
-j, --export-id-only
-l, --export-plain-svg
--export-png-color-mode=COLORMODE
--export-png-use-dithering=BOOLEAN
--export-ps-level=LEVEL
--export-pdf-version=VERSION
-T, --export-text-to-path
--export-latex
--export-ignore-filters
-t, --export-use-hints
-b, --export-background=COLOR
-y, --export-background-opacity=VALUE
-I, --query-id=OBJECT-ID[,OBJECT-ID]*
-S, --query-all
-X, --query-x
-Y, --query-y
-W, --query-width
-H, --query-height
--vacuum-defs
--select=OBJECT-ID[,OBJECT-ID]*
--actions=ACTION(:ARG)[;ACTION(:ARG)]*
--action-list
--actions-file=FILENAME
-g, --with-gui
-q, --active-window
--display=DISPLAY
--app-id-tag=TAG
--batch-process
--shell
inkscape 在 GUI 中打开 SVG 文件:
inkscape filename.svg
inkscape 将 SVG 文件导出为 PNG,默认分辨率为 96 dpi(一个 SVG 用户单位转换为一个位图像素):
inkscape --export-filename=filename.png filename.svg
inkscape 同上,但强制 PNG 文件为 600x400 像素:
inkscape --export-filename=filename.png -w 600 -h 400 filename.svg
inkscape 同上,但导出绘图(所有对象的边界框),而不是页面:
inkscape --export-filename=filename.png --export-area-drawing filename.svg
inkscape 将两个不同的文件导出为四种不同的文件格式:
inkscape --export-type=png,ps,eps,pdf filename1.svg filename2.svg
inkscape 将 SVG 文档转换为 EPS,将所有文本转换为路径:
inkscape --export-filename=filename.eps --export-text-to-path filename.svg